/**
 * 
 */
package sailing.listener;

import javax.swing.SwingUtilities;

/**
 * @author kevin
 * 
 */
public final class DATA {

	public static void frieDateChanged() {
		SwingUtilities.invokeLater(new Runnable() {

			@Override
			public void run() {
				AppListenerManager.getInstance().frieDateChanged();
			}
		});
	}

	public static void addDataListener(DataListener dataListener) {
		AppListenerManager.getInstance().addDataListener(dataListener);
	}

	
	public static void removeDataListener(DataListener dataListener) {
		AppListenerManager.getInstance().removeDataListener(dataListener);
	}

	public static void frieDateChanged(Class<?> listenerClass) {
		AppListenerManager.getInstance().frieDateChanged(AppEvent.newEvent(listenerClass));
	}
}
